|
|
|
|
|
|
|
The following code displays the related information from the application properties in the Label controls on the splash form: |
|
|
|
|
|
|
|
|
lblVersion.Caption = Version & App.Major & . & App.Minor & ._
& App.Revision
lblProductName.Caption = App.Title
lblCompany.Caption = App.CompanyName |
|
|
|
|
|
|
|
|
The APP object has several other properties that can be used for display purposes. There is one other form that you can add to your application; however, if you are like me, this form becomes annoying after it is displayed once or twice. |
|
|
|
|
|
|
|
|
The Tip of the Day form is another template included with Visual Basic. It is different from the other two discussed in that it has some sample code in it to help you finish the coding process for it. This form (see Figure 7.24) is usually displayed after the main form is displayed but after the splash form is unloaded. |
|
|
|
|
|
|
|
|
Figure 7.24.
The Tip of the Day form lets you give the
user tips, hints, or just some comments about
the application, computers,
or life in general. |
|
|
|
|
|
|
|
|
This form does require you to create a text file that contains the different tips that will be displayed. Also, a check box on the form lets the user tell the application not to display this form again. If you have been using any of the Microsoft Office tools, then you have seen this type of form and have probably turned it off. Again, using or not using these forms is your choice. |
|
|
|
|
|
|
|
|
For this sample application, add both the Splash and About forms to the project. Then, add the code to the Help, About menu option to display the About form. |
|
|
|
|
|
|
|
|
Tip The About form is usually displayed as a modal form, which prevents the user from continuing until he clicks OK on the form to unload it. |
|
|
|
|
|
|